﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace PremierTaxFree.PTFLib.Data
{
    public class DbMessageInfo : IReadable
    {
        public string Message { get; private set; }
        public int Type { get; private set; }
        public string Source { get; private set; }
        public string StackTrace { get; private set; }
        public DateTime DateInserted { get; private set; }

        public void Load(IDataReader reader)
        {
            Message = reader.GetString(0);
            Type = reader.GetInt32(1);
        }
    }
}
